public class P1_Consfunc{
	int voice;
	P1_Consfunc (int a){ voice  = a;}

	int getvoice(){
		return voice;
	}
}

class temp{

	public static void main(String args[]){
		int a = 5;
		P1_Consfunc c = new P1_Consfunc(a);
		System.out.println(c.getvoice());//System.out.println(c.voice); 
										//尽量以方法调用的方式去处理一个对象内部的属性（c.getvoice()），
										//而不是直接处理(c.voice)
	}
}
